package Animal;

/**
 * @author 孤雪唯方
 * @date 2025/05/12
 * @description 青蛙类
 */
public class Frog extends Animal implements ISwimming,IRunning{
    public Frog(String name, int age) {
        super(name, age);
    }

    /**
     * 青蛙吃东西
     */
    @Override
    public void eat() {
        System.out.println(this.name + "在吃虫子~~~");
    }

    /**
     * 青蛙在跑
     */
    @Override
    public void run() {
        System.out.println(this.name + "在用四条腿跳~~~");
    }

    /**
     * 青蛙在游泳
     */
    @Override
    public void swim() {
        System.out.println(this.name + "在蹬腿游泳~~~");
    }
}
